<!DOCTYPE html> 
<html> 
	<head> 
	<title>Page Title</title> 
	
	<meta name="viewport" content="width=device-width, initial-scale=1"> 

	<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
	<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
	<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
</head> 
<body> 
</body>
<script type="text/javascript">
  
  $(function(){
    $("body").append("<div data-role='page' id='p1'>123</div>");  
    $("body").append("<div data-role='page' id='p2'>456</div>");
    $.mobile.changePage("#p1");
  });
</script>
</html>